html {
    font-size: 50px;
}

@media screen and (min-width: 320px) {
    html {
        font-size: 21.33333333px;
    }
}

@media screen and (min-width: 360px) {
    html {
        font-size: 24px;
    }
}

@media screen and (min-width: 384px) {
    html {
        font-size: 25.6px;
    }
}

@media screen and (min-width: 400px) {
    html {
        font-size: 26.66666667px;

    }
}

@media screen and (min-width: 414px) {
    html {
        font-size: 27.6px;
    }
}

@media screen and (min-width: 424px) {
    html {
        font-size: 28.26666667px;
    }
}

@media screen and (min-width: 480px) {
    html {
        font-size: 32px;
    }
}

@media screen and (min-width: 540px) {
    html {
        font-size: 36px;
    }
}

@media screen and (min-width: 720px) {
    html {
        font-size: 48px;
    }
}

@media screen and (min-width: 750px) {
    html {
        font-size: 50px;
    }
}

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #F2F2F2;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

body,html{
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.box{
    display: flex;
    flex-direction: column;
    width: 98%;
    height: 20rem;
    margin: 1rem auto;
}
canvas {
    flex: 2;      
    border: 1px solid #fff;
    width: 100%;
    height: 100%;
    margin-top: .4rem;
}
.qw{
    flex: 1;
}
button{
    width: 1.6rem;
    height: .8rem;
    font-size: .36rem;
}
input{
    width: 6rem;
    font-size: .32rem;
    height: .8rem;
    padding: .1rem 0 0 .1rem;
}
.qw div{
    margin-top: .4rem;
}
textarea{
    resize: none;
    width:6rem ;
    padding: .1rem 0 0 .1rem;
}


/* 星星 */
body {
    background-color: #000;
}


.xingxing {
    position: absolute;
    left: 100px;
    width: 30px;
    height: 2px;
    background: -webkit-linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0));
    border-radius: 100%;
    animation: shining 3s infinite ease-in-out;
    transform: scale(0);
}

.x-inside{
    position: absolute;
    width: 2px;
    height: 30px;
    background: -webkit-linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0));
    border-radius: 100%;
    left: 14px;
    top: -14px;
}

@keyframes shining{
    0%{
        transform: scale(0);
    }
    50%{
        transform: scale(1);
    }
    100%{
        transform: scale(0);
    }
}